//
//  BaseTableViewController.swift
//  SwiftWB
//
//  Created by luozhijun on 2016/10/1.
//  Copyright © 2016年 luozhijun. All rights reserved.
//

import UIKit

class BaseTableViewController: UITableViewController {
    
    //MARK: - Properties
    /** 访客封面view */
    lazy var visitorCoverView: VisitorCoverView = VisitorCoverView.instanceFromXib()
    
    /** 指示用户是否登录, 默认为否 */
    var isLogin: Bool = false
    
    //MARK: - View Life Cycle
    override func loadView() {
        isLogin ? super.loadView() : setupVisitorCoverView()
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
    }
    
    //MARK: - 
    private func setupVisitorCoverView() {
        view = visitorCoverView
    }
}
